import http from './index'
/*=============菜单管理===============*/ 
export const getMenuList = () => http.get('/menulist?istree=1')
export const menuadd = (data:any) => http.post('/menuadd',data)
export const menudel = (data:any) => http.post('/menudelete',data)
export const menuedit = (data:any) => http.post('/menuedit',data)
export const menuinfo = (data:any) => http.get('/menuinfo',data)



/*=============角色管理===============*/ 
export const getRoleList = () => http.get('/rolelist')
export const roleadd = (data:any) => http.post('/roleadd',data)
export const roledel = (data:any) => http.post('/roledelete',data)
export const roleedit = (data:any) => http.post('/roleedit',data)
export const roleinfo = (data:any) => http.get('/roleinfo',data)



/*=============管理员管理===============*/ 
export const userlogin = (data:any) => http.post('/userlogin',data)
export const useradd = (data:any) => http.post('/useradd',data)
export const userdel = (data:any) => http.post('/userdelete',data)
export const useredit = (data:any) => http.post('/useredit',data)
export const userinfo = (data:any) => http.get('/userinfo',data)
export const usercount = () => http.get('/usercount')
export const userlist = (data:any) => http.get('/userlist',data)